package cn.ronghuanet.org.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DepartmentQuery {
    private Integer currentPage;
    private Integer pageSize;
    private String keyword;

    public int getStart(){
        return  (currentPage-1)*pageSize;
    }
}
